package com.cyou.qb.exception;

/**
 * 抽奖异常类
 * @author zoudongchao
 */
public class DrawException extends RuntimeException {
	
	private static final long serialVersionUID = -573316057449379671L;
	
	public static final int ACTIVE_OVER = 100;				//活动结束
	public static final int BASIC_INFO_NOT_COMPLETE = 101;	//基本信息完整度不够
	public static final int CONTACT_INFO_NOT_COMPLETE = 102;//联系信息完整度不够
	public static final int NO_ENOUGH_LEVEL = 103;			//级别不够
	public static final int NO_ENOUGH_GOLD = 104;			//G币不足
	public static final int NO_ENOUGH_DRAW_TIMES = 105;		//抽奖次数用尽
	public static final int UNKNOWN_RULE_TYPE = 106;		//未知抽奖条件
	public static final int NO_RULE = 107;					//没有抽奖条件
	public static final int UNEXPECTED_PARAM = 108;			//参数错误
	public static final int DB_STORE_EXCEPTION = 109;		//数据存储异常
	public static final int INTERFACE_173_FAIL = 110;		//173接口通信异常
	/**
	 *
	 */
	private int ERROR_CODE;
	/**
	 * 
	 */
	public DrawException() {
	}

	/**
	 * @param message
	 */
	public DrawException(int type, String message) {
		super(message);
		this.ERROR_CODE = type;
	}

	/**
	 * @param cause
	 */
	public DrawException(int type, Throwable cause) {
		super(cause);
		this.ERROR_CODE = type;
	}

	/**
	 * @param message
	 * @param cause
	 */
	public DrawException(int type, String message, Throwable cause) {
		super(message, cause);
		this.ERROR_CODE = type;
	}

	public int getERROR_CODE() {
		return ERROR_CODE;
	}

	public void setERROR_CODE(int eRROR_CODE) {
		ERROR_CODE = eRROR_CODE;
	}


}
